package org.spring.springboot.app.community.structure.dao;

import org.spring.springboot.app.community.info.domain.vo.CommunityInfoSelectVO;
import org.spring.springboot.app.community.structure.domain.po.CommunityStructurePO;
import org.spring.springboot.app.community.structure.domain.vo.CommunityStructureHouseVO;
import org.spring.springboot.app.community.structure.domain.vo.CommunityStructureVO;

import java.util.List;
import java.util.Map;

public interface CommunityStructureDao {

    List<CommunityStructurePO> findByParent(String parent_id);

    List<CommunityStructureHouseVO> findHouseByFloorId(String floorId);

    int deleteByPrimaryKey(String id);

    CommunityStructureHouseVO findHouseById(String houseId);

    int insert(CommunityStructurePO record);

    int insertSelective(CommunityStructurePO record);

    CommunityStructurePO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(CommunityStructurePO record);

    int updateByPrimaryKey(CommunityStructurePO record);

    int queryByIdAndType(String id,String sort,String type);

    Integer findMaxSort(String parentId,String sort);

    int deleteByParentIds(String parentIds);
}